/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.qxypt.io
 *
 * 版权所有，侵权必究！
 */

package xw.qxypt;

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.context.annotation.Bean;
import org.springframework.http.converter.HttpMessageConverter;


@SpringBootApplication
public class AdminApplication {

/*	@Bean
	public HttpMessageConverters fastJsonHttpMessageConverters(){
		FastJsonHttpMessageConverter fj = new FastJsonHttpMessageConverter();
		FastJsonConfig fjc = new FastJsonConfig();
		fjc.setSerializerFeatures(SerializerFeature.PrettyFormat);
		fj.setFastJsonConfig(fjc);
		HttpMessageConverter<?> con = fj;
		return new HttpMessageConverters(con);
	}*/

	public static void main(String[] args) {
		SpringApplication.run(AdminApplication.class, args);
	}

}
